package edu.polsl.bio.str.common.entity;

import javax.persistence.*;

/**
 * //todo class description
 * <p/>
 * Created on: Jun 13, 2011 4:38:19 PM <br/>
 * <a href="http://www.polsl.pl">www.polsl.pl</a>
 *
 * @author lukasz.olczak@polsl.pl
 */
@Entity
@Table(name = "strs")
public class Str extends BaseEntity {

  private Integer start;

  private Integer end;

  private String motif;

  private Integer motifLength;

  private Integer noRepeats;

  private Integer length;

  private Double ratio;

  private Long individualId;

  private Long chromosomeId;

  public Integer getStart() {
    return start;
  }

  public void setStart(Integer start) {
    this.start = start;
  }

  public Integer getEnd() {
    return end;
  }

  public void setEnd(Integer end) {
    this.end = end;
  }

  public String getMotif() {
    return motif;
  }

  public void setMotif(String motif) {
    this.motif = motif;
  }

  @Column(name = "motif_length")
  public Integer getMotifLength() {
    return motifLength;
  }

  public void setMotifLength(Integer motifLength) {
    this.motifLength = motifLength;
  }

  @Column(name = "no_repeats")
  public Integer getNoRepeats() {
    return noRepeats;
  }

  public void setNoRepeats(Integer noRepeats) {
    this.noRepeats = noRepeats;
  }

  public Integer getLength() {
    return length;
  }

  public void setLength(Integer length) {
    this.length = length;
  }

  public Double getRatio() {
    return ratio;
  }

  public void setRatio(Double ratio) {
    this.ratio = ratio;
  }

  @Column(name = "individual_id")
  public Long getIndividualId() {
    return individualId;
  }

  public void setIndividualId(Long individualId) {
    this.individualId = individualId;
  }

  @Column(name = "chromosome_id")
  public Long getChromosomeId() {
    return chromosomeId;
  }

  public void setChromosomeId(Long chromosomeId) {
    this.chromosomeId = chromosomeId;
  }

  @Override
  public String toString() {
    return "Str{" +
           "start=" + start +
           ", end=" + end +
           ", motif='" + motif + '\'' +
           ", motifLength=" + motifLength +
           ", noRepeats=" + noRepeats +
           ", length=" + length +
           ", ratio=" + ratio +
           ", individualId=" + individualId +
           ", chromosomeId=" + chromosomeId +
           '}';
  }
}
